package cn.bs.mapper;

import cn.bs.domain.dao.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PostMapper extends BaseMapper<Post> {
    List<Post> getPostList();

    Post getById(Integer postId);

    Integer getMaxId();

    void deleteByUserId(Integer userId);

}
